<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/common/common_taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="/WEB-INF/pages/include/head.jsp"></jsp:include>
<link href="/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body class="off-nav">
	<jsp:include page="/WEB-INF/pages/fc/include/nav.jsp" flush="false"></jsp:include>
	<div id="main-div">
		<div class="main-div-left">
			<jsp:include page="/WEB-INF/pages/fc/include/userinfo.jsp"></jsp:include>
			<div style="">
				<ul id="shu-nav" class="nav nav-pills nav-stacked nav-border">
					<li class="active"><a href="/user/toUpdatePwd"><i
							class="cus-key"></i> 修改密码</a></li>
					<li><a href="/user/toUpdateHead"><i class="cus-picture"></i>
							修改头像</a></li>
				</ul>
				<script type="text/javascript">
					$(function() {
						$("#shu-nav li").click(function() {
							$("#shu-nav li").removeClass("active");
							$(this).addClass("active");
						});
					});
				</script>
			</div>
		</div>
		<div class="main-div-right">
			<c:if test="${nopass eq 1 }">
				<div class="alert alert-danger alert-dismissable" style="margin-top: 20px;overflow: hidden;">
					<button type="button" class="close" data-dismiss="alert"
						aria-hidden="true">&times;</button>
					<strong>提示：</strong> <br/>
					<c:if test="${not empty oldPwd_info }">
						${oldPwd_info }<br /> 
					</c:if>
					<c:if test="${not empty newPwd_info }">
						${newPwd_info }<br /> 
					</c:if>
					<c:if test="${not empty rePwd_info }">
						${rePwd_info }<br /> 
					</c:if>
				</div>
			</c:if>
			<span class="main-div-right-title">修改密码</span>
			<form role="form" id="updatePwd-form" method="post"
				action="/user/updatePwd">
				<div class="form-group">
					<label for="inputPassword">当前密码</label> <input type="password"
						class="form-control" id="inputPassword" name="oldPwd"
						value="${oldPwd }" placeholder="请输入当前密码,[8-16],包含数字和字母">
				</div>
				<div class="form-group">
					<label for="inputNewPassword">新密码</label> <input type="password"
						class="form-control" id="inputNewPassword" name="newPwd"
						value="${newPwd }" placeholder="请输入新密码，不能与当前密码相同">
				</div>
				<div class="form-group">
					<label for="inputRePassword">确认密码</label> <input type="password"
						class="form-control" id="inputRePassword" name="rePwd"
						placeholder="再次输入新密码，必须与新密码保持一致">
				</div>
				<button type="submit" class="btn btn-primary">确 定</button>
				<span class="mg-waring"><i class="cus-information"></i>
					提示：修改密码后需重新登录</span>
			</form>
		</div>
	</div>

	<jsp:include page="/WEB-INF/pages/include/copyright.jsp"></jsp:include>
	<script type="text/javascript">
		$(function() {
			initPage();
		})
	</script>
</body>
</html>
